<!DOCTYPE html>  
<html>  
  <head>  
    <title>Input and Output</title>  
  </head>
  <body>  
    <script type="text/javascript">
      // String input
      var name = prompt("Please enter your name:","Ann");

      // Numerical input
      var age = prompt("Please enter your age:","18");
      var salary = prompt("Please enter your salary:","10000");

      // Output input by user
      alert("Name: " + name);
      alert("Age: " + age);
      alert("Salary: " + salary);

      console.log("Name: " + name);
      console.log("Age: " + age);
      console.log("Salary: " + salary);
    </script> 
  </body>  
</html>